from django.contrib import admin
from bank.app.models import UserProfile, Account, Payment, Card

class AccountAdmin(admin.ModelAdmin):
    list_display = ('user', 'name', 'number')
    
class PaymentAdmin(admin.ModelAdmin):
    list_display = ('from_account', 'to_account', 'amount')
    
class CardAdmin(admin.ModelAdmin):
    list_display = ('account', 'credit_card', 'net_payment')

admin.site.register(UserProfile)
admin.site.register(Account, AccountAdmin)
admin.site.register(Payment, PaymentAdmin)
admin.site.register(Card, CardAdmin)
